import axios, { Axios } from 'axios'
const context = '/recipeservice'

/**
 * 获取 Formulamanage 分页列表
 */
export function getFormulamanagePagination(data: any) {
  return axios.get(`${context}/formulaManage/pagination`, { params: data })
}

/**
 * 获取 Formulamanage 所有数据
 */
export function getFormulamanageAllList(data: any) {
  return axios.get(`${context}/formulaManage/all`, { params: data })
}

/**
 * 获取 Formulamanage 详情
 */
export function getFormulamanageDetailById(id: any) {
  return axios.get(`${context}/formulaManage/${id}`, { params: { id } })
}

/**
 * 新增 Formulamanage
 */
export function addFormulamanage(data: any) {
  return axios.post(`${context}/formulaManage`, data)
}

/**
 * 修改 Formulamanage
 */
export function updateFormulamanage(data: any) {
  return axios.put(`${context}/formulaManage`, data)
}

/**
 * 删除 Formulamanage
 */
export function batchRemoveFormulamanage(data: any) {
  return axios.post(`${context}/formulaManage/batchRemove`, data)
}
